package org.csu.wuliu.persistence;

import org.csu.wuliu.domain.Distributor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DistributorMapper {
    Distributor getDistributor(String distributorId);
    //查询某分站的所有配送员
    List<Distributor> getDistributorListBySubstationId(String substationId);
    //查询某分站中处于某种状态的所有配送员
    List<Distributor> getDistributorLIstBySubstationIdAndStatus(String substationId, int status);

    void insertDistributor(Distributor distributor);
    void updateDistributor(Distributor distributor);
    void deleteDistributor(Distributor distributor);
}
